package com.dailyblue.java.spring.consumer.controller;

import com.alibaba.csp.sentinel.adapter.spring.webmvc.callback.RequestOriginParser;
import com.mysql.cj.PreparedQuery;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;

@Component
public class SentinelController implements RequestOriginParser {
    @Override
    public String parseOrigin(HttpServletRequest request) {
        String param = request.getParameter("serviceName");
        System.out.println(param);
        return param;
    }
}
